# _*_coding:utf-8_*_
# Author   :luoyuan 
# Date     :2018/12/8 22:44  
'''
 1.数据属性
 2.函数属性
'''
class Chinse:
    '注释'
    phone = 'huawei'

    def eat():
        print('eat')
    def study(self):
        print('study')
print(Chinse)

# 类的实例化
p = Chinse()
Chinse.eat()

print(dir(Chinse))
# 查看类的属性字典
print(Chinse.__dict__)
print(Chinse.__dict__['phone'])
Chinse.__dict__['eat']()
Chinse.study(2)

print('--------------------------')
print(Chinse.__doc__)
print(Chinse.__bases__)
print(Chinse.__name__)
print(Chinse.__module__)
